create button in dev C++

Mar 7, 2009 at 12:44am
How can I create a button in a window in dev C++? Thanks!
EDIT:how do I delete this?

Last edited on Mar 8, 2009 at 8:48pm
Mar 7, 2009 at 6:05am
create a button in a windows used win32Api.
for example:
HWND button = ::CreateWindow("button","Button",WS_CHILD,0,0,100,100,parent,NULL,::GetModuleHandle(NULL),0);
::ShowWindow(button,SW_SHOW);
Apr 18, 2009 at 1:03am
Don't delete please. Leave this post for other people that might want to know how to make a button.
Apr 19, 2009 at 8:29am
Leave this post for other people that might want to know how to make a button.

Are you joking ?!
There are just > 40000 hits on Google Groups on CreateWindow(), 300 000 on Google ,
firts hit in 1989
It's the first Win32 api that a newbie learns.
Read Petzold !
Apr 22, 2009 at 4:26pm
closed account (S6k9GNh0)
hahahah...I think he was being sarcastic.

1. You can't delete your main post because someone has posted on to your thread.
2. If your wanting to delete your thread after making it, you might want to think about the following:
Could I get this info elsewhere?
Does this make it unnessecarily inconvenient for them?
Is this question stupid? (there are exceptions to this one :P)

3. If you really want this post to stay up, why not give an example of all the other controls in the WinAPI?
Last edited on Apr 23, 2009 at 8:24pm
Apr 24, 2009 at 3:26pm
I don't see anything important here just delete it
See this if you want to make a button http://zetcode.com/tutorials/winapi/controls/
Topic archived. No new replies allowed.